<link rel="stylesheet" type="text/css" media="all" href="/js/skins/aqua/theme.css" title="Aqua" />
<script type="text/javascript" src="/js/calendar.js"></script>
<script type="text/javascript" src="/js/calendar-it.js"></script>
<script type="text/javascript" src="/js/dateFromCalendar.js"></script>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<h3>Modifica i tuoi dati</h3>
<form name="updateUserForm" action="./private/UpdateUser" method="post">
	<input type="hidden" value="${user.userID}" name="userID" />
	<input type="hidden" value="${user.blogURL}" name="blogURL" />
	<ul>
		
		<li>Nome:<input type="text" name="name" size="25" value="<c:out value="${user.name}"/>"/></li>
		<li>Cognome:<input type="text" name="surname" size="25" value="<c:out value="${user.surname}"/>"/></li>
		<li>Email*:<input name="email" type="email" size="25" value="<c:out value="${user.email}"/>" class="textinput" required /></li>
		<li>Sesso: 
			<c:if test="${user.isGender()}">
				<input type="radio" name="gender" value="1" checked="checked"/>M
				<input type="radio" name="gender" value="0"/>F
			</c:if>
			<c:if test="${!user.isGender()}">
				<input type="radio" name="gender" value="1"/>M
				<input type="radio" name="gender" value="0" checked="checked"/>F
			</c:if>
		</li>
		<li>Data di Nascita:</li><li><input type="text" name="dateOfBirth" id="date" value="${user.dateOfBirth.day}/${user.dateOfBirth.month}/${user.dateOfBirth.year}" size="10" readonly="readonly"/><input type="reset" value=" ... " onclick="return showCalendar('date', '%d/%m/%Y');" /></li>
		<li>Sito personale:<input type="text" name="siteURL" size="25" value="<c:out value="${user.siteURL}"/>" /></li>
	    <li>Username*:<input name="username" size="25" value="<c:out value="${user.username}"/>" required/></li>
		<li>Password*:<input  type="password" name="password" size="25" value="<c:out value="${user.password}"/>" required/></li>
		<input type="hidden" name="imgURL"  size="25" value="<c:out value="${user.imgURL}"/>"/>
		<input type="hidden" name="userState" value="1" />
		<li><input class="submit" type="submit" value="Salva" /><small>Press ESC to close</small> </li>
	</ul> 
</form>